/*
 *  rgs_label.h
 *  RGS
 *
 *  Copyright 2008 Ivan Safrin.
 *
 *  This code is distributed under the LGPL license.
 *  You should have a copy of LGPL.txt distributed
 *  with the project, but if not you can get a copy
 *  at http://www.gnu.org/licenses/
 *
 */
 
#ifndef RGS_LABEL_H_
#define RGS_LABEL_H_

#include "SDL.h"
#include "rgs_data.h"
#include "BFont.h"

#ifdef __cplusplus
extern "C" {
#endif

/* @package Graphics */

#define RGS_FONT_SMALL	0
#define RGS_FONT_BIG	1

extern RGS_Core *g_rgs;

/** @beginmodule Label */

typedef struct {
	RGS_Object object;
	RGS_Color color;
	BFont_Info *font;
	char *text;
} RGS_Label;


extern DECLSPEC RGS_Label *RGS_CreateLabel(RGS_Screen *screen, char *caption, int fontType, int x, int y, int color);
extern DECLSPEC void RGS_RenderLabel(SDL_Surface *target, void *object);
extern DECLSPEC void RGS_SetLabelText(RGS_Label *label, char *text);

/* @endmodule */

#ifdef __cplusplus
}
#endif


#endif

